﻿// ==UserScript==
// @name ISP_Hint
// @description Hint all values in tables in all managers
// @author yumaa@ispsystem.com
// @include */manager/*mgr*
// ==/UserScript==

(function() {
if ( ! /manager.*mgr/.test(window.location) ) return;

	opera.addEventListener('BeforeEvent.DOMContentLoaded', function(e) {
		if ( ! ujsCheckPage(Array('title')) ) return;
		
		var maintbl = $id('MAINTBL');
		if ( maintbl.rows[0] )
			var colscnt = maintbl.rows[0].getElementsByTagName('TD').length;
		if ( maintbl )
			for (i = 0; i < maintbl.rows.length /*mistix*/-3; i++) {
				for (j = 0; j < colscnt; j++)
					maintbl.rows[i].cells[j].title = maintbl.rows[i].cells[j].innerText;
			}
		
	}, true);
})();
